package com.EAsystem.service;

import com.EAsystem.entity.Teacher;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface TeacherService {
    

    
    // 分页查询所有教师
    PageInfo<Teacher> findAllByPage(int pageNum, int pageSize);
    
    // 根据ID查询教师
    Teacher findById(Integer id);
    
    // 根据教师编号查询教师
    Teacher findByTeacherNo(String teacherNo);
    
    // 根据用户ID查询教师
    Teacher findByUserId(Integer userId);
    

    
    // 条件查询教师
    PageInfo<Teacher> findByCondition(Teacher teacher, int pageNum, int pageSize);
    
    // 添加教师
    boolean add(Teacher teacher);
    
    // 更新教师
    boolean update(Teacher teacher);
    
    // 删除教师
    boolean delete(Integer id);
    

    

}